package conson.tech.manage.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.app.entity.pojo.AppVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * InterfaceName: AppVersionMapper
 * Description:
 * Author: HXL
 * Date: 2020/4/27 10:46 上午
 * Version: 1.0
 */
public interface AppVersionMapper extends BaseMapper<AppVersion> {
    List<AppVersion> queryAppVersionList();

    Page<AppVersion> queryAppVersionPage(Page<AppVersion> page,@Param("platformType") Integer platformType);

    List<AppVersion> checkAppVersion(@Param("version")AppVersion version);

    List<AppVersion> queryAppVersionByValue(@Param("list")List<Integer> list);

    List<AppVersion> queryNewVersionByVersionState(@Param("versionState") int versionState);

    List<AppVersion> queryNewVersionData(@Param("state") int versionState,@Param("platformType") Integer platformType);
}
